package day14;

import java.util.Scanner;

public class TestException04 {
    public static void main(String[] args) {
        f();
    }

    private static void f() {
        try{
            method();
        }catch(Exception e){
            System.out.println("您输入的类型不对");
        }

    }




    private static void method() throws Exception {
        System.out.println("请输入第一个整数");
        int i = new Scanner(System.in).nextInt();
        System.out.println("请输入第二个整数");
        int j = new Scanner(System.in).nextInt();
        System.out.println(i/j);
    }
}
